import unittest
import os
import HTMLTestRunner_cn
test = unittest.defaultTestLoader.discover(r"D:\PyCharm\PythonProject\Automation")

report_runner =  HTMLTestRunner_cn.HTMLTestRunner(
    stream=open(file='登录测试.html', mode='wb', ),
    verbosity=3,
    title='登录测试',
    description='登录成功的测试',
    tester='小明'
)
report_runner.run(test)

